package cn.com.xuhx.pojo;

import java.io.Serializable;

/**
 * 员工表
 */
public class Equipment implements Serializable {

    private Integer id;

    private String name;

    private String tel;

    private Integer age;

    private String sex;

    //当前实体与关联实体是多对一的关系
    private Department department;

    public Equipment() {
    }

    public Equipment(Integer id, String name, String tel, Integer age, String sex, Department department) {
        this.id = id;
        this.name = name;
        this.tel = tel;
        this.age = age;
        this.sex = sex;
        this.department = department;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    @Override
    public String toString() {
        return "Equipment{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", tel='" + tel + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", department=" + department +
                '}';
    }
}
